package io.cloud.tec.project.web;

import io.cloud.tec.project.dto.AccountRespDTO;
import io.cloud.tec.project.service.ChatGptService;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@AllArgsConstructor
@RestController
@RequestMapping("api/chatgpt")
public class ChatGptWeb {

    ChatGptService chatGptService;

    @GetMapping("account")
    public AccountRespDTO account() {
        return chatGptService.defaultAccount();
    }
}
